package com.cgwx.common.enums;

import com.fasterxml.jackson.annotation.JsonValue;

public enum ManageType implements InfoEnum{
    LOCK("LOCK","设备维护"),
    TEMP_TASK("TEMP_TASK","临时任务"),
    MANAGE_EQU_AND_TIME("MANAGE_EQU_AND_TIME","调整设备-时间"),
    UNLOCK("UNLOCK","解锁设备"),
    CANCEL("CANCEL","取消试验")
    ;
    private String code;
    private String info;

    ManageType(String code, String info) {
        this.code = code;
        this.info = info;
    }

    public String getCode() {
        return code;
    }

    @JsonValue
    public String getInfo() {
        return info;
    }


    @Override
    public String getSelfCode() {
        return this.code;
    }

    @Override
    public String getSelfInfo() {
        return this.info;
    }
}
